#pragma once
#include "socket_client.h"
#include <iostream>
#include <string>


class laser_client
{
public:
	laser_client();
	laser_client(std::string ip, int port = 502);
	~laser_client();

	void open_laser();

	void close_laser();

	void set_job(int laserjob = 0x01);

	void get_point(double& laser_y, double& laser_z);

private:
	Socket_Client yl;
	void laser_parse(unsigned char* buf, short* num1, short* num2);
};
